<?php

namespace app\common\model\ads;

use think\Model;
use think\model\relation\HasMany;

/**
 * Position
 */
class Position extends Model
{
    // 表名
    protected $name = 'ads_position';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function lists(): HasMany
    {
        return $this->hasMany(Ads::class, 'ads_position_id', 'id');
    }
}